<template>
	<uni-card :is-shadow="false">
		<text class="uni-h1">SMS信息列表</text>
	</uni-card>
	<uni-card :is-shadow="false">
		<uni-section title="状态" type="line" padding>
			<uni-card :is-shadow="false" is-full>
				<text class="uni-h6">{{tvInfo}}</text>
			</uni-card>
		</uni-section>
		<button @click="btnStart" type="primary" class="uni-mt-2 uni-mx-2">开始获取短信列表</button>	
	
	</uni-card>
</template>

<script>
	const huo15Sdk = uni.requireNativePlugin('Huo15-Sms')
	
	export default {
		data() {
			return {
				tvInfo:'',
			}
		},
		onLoad() {
			console.log('sdk', huo15Sdk)
			const globalEvent = uni.requireNativePlugin('globalEvent')
			globalEvent.addEventListener('onRequestPermissionsResult', (e) => {
				console.log('globalEvent',JSON.stringify(e));
				
			})
		},
		methods: {
			btnStart(){
				console.log('bt start')
				huo15Sdk.getAllMsg()
			},
		}
	}
</script>

<style>

</style>
